package com.pubinfo.passbook.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author xuhong
 * @since 2021-12-07
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName(value = "t_file_enclosure_ftp")
public class TFileEnclosureFtp implements Serializable {
  
  private static final long serialVersionUID = 1L;
  
  @TableId(type = IdType.ASSIGN_ID, value = "id")
  private String id;
  
  /**
   * 文件名
   */
  private String name;
  
  /**
   * 生成的http地址
   */
  private String http;
  
  /**
   * ftp保存地址
   */
  private String ftp;
  
  /**
   * 对应的t_file_info的id
   */
  private String fileId;
  
  /**
   * 对应t_witeoff_instance的witeoff_Instance_code
   */
  private String instanceId;
  
  /**
   * 创建时间
   */
  @TableField(fill = FieldFill.INSERT)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date createTime;
  
}
